public class Code9_11 {
    public static void main(String[] args) {
        Student student1 = new Student("zhangshan",18);
        Student student2 = new Student("lisi",19);
        Student student3 = new Student("wangwu",21);

        /*student1.set("lisi",18);
        student2.set("zhangshan",19);
        student3.set("wangwu",21);*/

        /*System.out.println(student1.name+" "+student1.age);
        System.out.println(student2.name+" "+student2.age);
        System.out.println(student3.name+" "+student3.age);
*/
        /*student1.again();
        student2.again();
        student3.again();*/

        System.out.println(student1.name+" "+student1.age);
        System.out.println(student2.name+" "+student2.age);
        System.out.println(student3.name+" "+student3.age);

    }
}
//创建一个学生属性
class Student {
   public String name;
    public int age;
    /*public void set(String name,int age){
        this.name = name;
        this.age = age;
    }*/
    /*public  void again (){
        this.set("更改",0);
    }*/
    public Student(String name,int age){
        this.name = name;
        this.age = age;
    }

}

